package com.excellent.item.mapper;

import com.excellent.item.pojo.Spu;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author Xxacker
 */
public interface SpuMapper extends Mapper<Spu> {
    /**
     * 修改规格参数组
     * */
    @Update("UPDATE TB_SPU SET saleable = #{saleable} , valid = #{valid} WHERE id = #{id}")
    int upDateBySpuId(Long id, Boolean saleable, Boolean valid);
}
